package com.javaweb.service;

import com.javaweb.model.User;
import com.javaweb.service.dto.PageResult;

import java.util.List;

public interface UserService {

    public User login(String username, String password) ;
    public List<User> findUserByName(String username) ;

    public User queryByName(String username);

    public int register(User user);

    public PageResult queryUsers(User userConditon, Integer pageNum, Integer pageSize);

    public void addAssignRole(String userId,List<String> roleIds);
}
